// 封装首页接口
import axios from '@/utils/request'
// 验证手机号是否被注册
export function getDocheckPhone (userInfo) {
  return axios.post('user/docheckphone', userInfo)
}
// 获取手机验证码
export function getDoSendmsgCode (userInfo) {
  return axios.post('user/dosendmsgcode', userInfo)
}
export function getDoCheckCode (userInfo) {
  return axios.post('user/docheckcode', userInfo)
}
export function getDoFinishregister (userInfo) {
  return axios.post('user/dofinishregister', userInfo)
}
export function getLogin (userInfo) {
  return axios.post('user/login', userInfo)
}
export function getInfo (userInfo) {
  return axios.get('user/info/?userid=' + userInfo)
}
export function getProlist (params) {
  return axios.get('pro/list', { params })
}
